<template>
	<view>
		<cu-custom bgColor="bg-maincolor" :isBack="true">
			<block slot="content">
				消息列表
			</block>
		</cu-custom>
		
		<view class="last_box">
			<view class="companylist_box" v-for="(item,index) in 4" :key='index'>
				<image :src="url" class="company-img"></image>
				<view class="company_textbox">
					<view class="comtext_box">11</view>
				    <view class="company_textboxone">赣州师范高等专科学校</view>
				</view>
				<view class="iconfont icon-you1 rg_box"></view>
			
			</view>
		</view>
		
	</view>
</template>

<script>
	const {
		appLogin,
		httpGet,
		httpPost
	} = require("@/utils/common.js")
	export default {
		data() {
			return {
				page:1,
				page_size:20,
				url:'http://www.555edu.com/d/file/2018-04-03/1617f058d34fa3d52031266d389580e2.jpg'
			}
		},
		onLoad() {
			appLogin((user_info) => {
				console.log(user_info)
				this.getnotice()
			})
		},
		methods: {
			getnotice(){
				httpGet({
					url:'/api/school/notice_list',
					data:{
						type:'',
						page:this.page,
						page_size:this.page_size,
					}
				}).then((res) => {
					console.log(res)
				})
			}
		}
	}
</script>

<style>
	page{
	}
	.last_box{
		margin-top: 20rpx;
	}
    .companylist_box {
		background-color: #FFFFFF;
		display: flex;
		padding-left: 30rpx;
		padding-top: 40rpx;
		padding-bottom: 30rpx;
		border-bottom: 1rpx solid rgba(231,231,231,0.8);
		height: 175rpx;
	}
	.company_textbox {
		margin-top: 10rpx;
		margin-left: 30rpx;
	}
	.company_textboxone{
		color: #666666;
	}
	.company-img {
		width: 100rpx;
		height: 100rpx;
		border-radius: 180rpx;
		margin-left: 10rpx;
	}
	.comtext_box {
		font-size: 28rpx;
		color: #333333;
		margin-bottom: 10rpx;
	}
	.rg_box {
		font-size: 40rpx;
		position: absolute;
		right: 43rpx;
		margin-top: 38rpx;
		background-color: #FFFFFF;
		color: rgba(140,140,140,0.5);
	}
</style>
